package com.linkage.seapeak.activity.project;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.linkage.jz.bankruptcy.R;
import com.linkage.seapeak.base.BaseWhiteActivity;
import com.linkage.seapeak.fragment.ExamineAddDataFragment;
import com.linkage.seapeak.fragment.ExamineInfoFragment;
import com.linkage.seapeak.view.QuickPopView;

public class ExamineAdvActivity extends BaseWhiteActivity {

    ExamineInfoFragment    infoFragment;
    ExamineAddDataFragment addAavFragment;

    private TextView popClick;
    private View menuDot, menuComplete;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_examine_adv, "异议信息");
        init();
    }

    private void init() {
        popClick = findViewById(R.id.pop_click);
        /**
         * 弹窗
         */
        popClick.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                QuickPopView.show(ExamineAdvActivity.this);
            }
        });
        infoFragment = new ExamineInfoFragment();
        getSupportFragmentManager().beginTransaction()
                .replace(R.id.content, infoFragment).commitAllowingStateLoss();

        menuDot = addMenu(new MenuAction(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                /**
                 * 非编辑页的操作菜单
                 */
            }
        }, "", R.drawable.more_black));
        menuComplete = addMenu(new MenuAction(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                /**
                 * 编辑页完成操作
                 */
            }
        }, "完成", 0));
        menuComplete.setVisibility(View.GONE);
    }


}
